package com.zw.commons.utlis;/*
 *@program:java-cloud-prevalence
 *@author:zw
 *@Time: 2022/12/14
 *@description:
 */

import lombok.extern.slf4j.Slf4j;

/**
 * 检查参数
 */

@Slf4j
public class CheckArgument {
    public static void isTrue(boolean condition, String msg) {
        if (!condition) {
            throw new RuntimeException(msg);
        }
    }
}
